package com.woniuxy.dao;

import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.RbacManagerDTO;
import com.woniuxy.entity.ResponseEntity;
import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.List;


public interface RbacManagerDao {
    List<RbacManager> findAll();

    int deleteOne(int id);

    int addOne(RbacManager rbacManager);

    int findCountByName(String account);

    int editOne(RbacManager rbacManager);

    int findCountByNameOrId(RbacManager rbacManager);

    RbacManager findOneByName(String username);

    int editType(int id);

    RbacManager findOneById(int id);

    int updateInitPwd(int id, String newPassword);

    int updateRole(RbacManagerDTO rbacManagerDTO);

    List<RbacManager> search(String account, String roleName);
}
